﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LDSP.BRL
{
    public class CodificationAddFavoriteResult : BYFW.BOL.BaseEntity
    {
        protected string m_codname = string.Empty;
        protected bool m_isAdded = false;
        protected bool m_isExactlyMatch = false;

        public CodificationAddFavoriteResult() { }

        public string CodName
        {
            get
            {
                return m_codname;
            }
            set
            {
                m_codname = value;
            }
        }

        public bool IsAdded
        {
            get
            {
                return m_isAdded;
            }
            set
            {
                m_isAdded = value;
            }
        }

        public bool IsExactlyMatch
        {
            get
            {
                return m_isExactlyMatch;
            }
            set
            {
                m_isExactlyMatch = value;
            }
        }

        public override bool GetProperties(System.Data.DataRow record)
        {
            m_codname = this.GetStringValue(record, "name");
            m_isAdded = this.GetBoolValue(record, "isAdded");
            m_isExactlyMatch = this.GetBoolValue(record, "isExactlyMatch");

            return true;
        }
    }
}
